package com.example.litterpainterdemo.draw.shapes

import android.graphics.Canvas
import android.graphics.Paint

class LineShape:Shape() {

    override fun insideTheShape(dx:Float,dy:Float):Boolean{
        return false
    }

    override fun drawShape(canvas: Canvas?) {
        mPaint.strokeCap = Paint.Cap.ROUND
        canvas?.drawLine(startPoint.x,startPoint.y,endPoint.x,endPoint.y,mPaint)
    }
}